Platform Explorer / Nuxeo Platform 2023.10

Operation Blob.AttachOnDocument (Attach File)

Description

Attach the input file to the document given as a parameter. If the xpath points to a blob list then the blob is appended to the list, otherwise the xpath should point to a blob property. If the save parameter is set the document modification will be automatically saved. Return the blob.
Operation id Blob.AttachOnDocument
AliasesBlob.Attach
Category Files
Label Attach File
Requires
Since

Parameters

Name Description Type Required Default value
document document yes  
save boolean no true 
xpath string no file:content 

Signature

Inputs bloblist, blob
Outputs bloblist, blob

Implementation Information

Implementation Class Class: org.nuxeo.ecm.automation.core.operations.blob.AttachBlob
Contributing Component org.nuxeo.ecm.core.automation.coreContrib

JSON Definition

{
  "id" : "Blob.AttachOnDocument",
  "aliases" : [ "Blob.Attach" ],
  "label" : "Attach File",
  "category" : "Files",
  "requires" : null,
  "description" : "Attach the input file to the document given as a parameter. If the xpath points to a blob list then the blob is appended to the list, otherwise the xpath should point to a blob property. If the save parameter is set the document modification will be automatically saved. Return the blob.",
  "url" : "Blob.AttachOnDocument",
  "signature" : [ "bloblist", "bloblist", "blob", "blob" ],
  "params" : [ {
    "name" : "document",
    "description" : null,
    "type" : "document",
    "required" : true,
    "widget" : null,
    "order" : 0,
    "values" : [ ]
  }, {
    "name" : "save",
    "description" : null,
    "type" : "boolean",
    "required" : false,
    "widget" : null,
    "order" : 0,
    "values" : [ "true" ]
  }, {
    "name" : "xpath",
    "description" : null,
    "type" : "string",
    "required" : false,
    "widget" : null,
    "order" : 0,
    "values" : [ "file:content" ]
  } ]
}